using UnityEngine;
using System.Collections;

public class ControlBalas : MonoBehaviour {
	
	public int balas=300;
	// Use this for initialization
	void Start () {
	
	}
	
	public void actualizarBalas(){
		if(balas<=0){
			Debug.Log("Sin Balas");
		}
		else{
			balas--;
		}
	}
	
	public void actualizarBalas(int b){
		balas = balas + b;
	}
	
	// Update is called once per frame
	void Update () {
			this.guiText.text=balas.ToString();
	}
}
